package User;

import Book.BookList;
import Operation.IOOperation;

public abstract class User {
    protected String name;
    protected IOOperation[] ioOperations;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doOperation(int choice, BookList bookList) {
        ioOperations[choice].work(bookList);
    }
}
